<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml" xmlns:shiro="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<h1>shiro 首页</h1>
<p th:text="${msg}"></p>
<div th:if="session.loginUser==null">
    <p><a th:href="@{/toLogin}">登录</a></p>
</div>
<hr>
<div shiro:hasPermission="user:add">
    <p><a th:href="@{/user/add}">add</a></p>
</div>|
<div shiro:hasPermission="user:update">
    <p><a th:href="@{/user/update}">update</a></p>
</div>
<hr>
</body>
</html>